﻿<UserControl x:Class="DllShepherd.EsriSilverlightApi.GettingStarted.SpatialQuery" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <esri:FillSymbol x:Key="ResultsFillSymbol" BorderBrush="Blue" BorderThickness="5"/>
            <esri:FillSymbol x:Key="FirstStateSymbol" BorderBrush="Aqua" BorderThickness="5"/>
        </Grid.Resources>

        <esri:Map x:Name="MapControl" Extent="-15000000,2000000,-7000000,8000000" MouseClick="MapControl_MouseClick">
            <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
        </esri:Map>

        <Canvas Width="350" Height="110" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,5,0" >
            <Rectangle Fill="#FFFFFFFF" Stroke="DarkGray" RadiusX="5" RadiusY="5" Canvas.Left="10" Canvas.Top="10" Width="330" Height="90"  />

            <StackPanel Orientation="Vertical" Canvas.Top="10" Canvas.Left="20">
                <TextBlock Text="Use these tools to select states from the map." TextAlignment="Center" FontSize="9" FontWeight="Bold" />
                <StackPanel Orientation="Horizontal">
                    <Button Click="PointButton_Click">
                        <Button.Content>
                            <Image Source="/DllShepherd.EsriSilverlightApi.GettingStarted;component/Images/DrawPoint.png" Stretch="UniformToFill" Margin="5" />
                        </Button.Content>
                    </Button>
                    <Button Click="ClearButton_Click">
                        <Button.Content>
                            <Image Source="/DllShepherd.EsriSilverlightApi.GettingStarted;component/Images/StopDraw.png" Stretch="UniformToFill" Margin="5" />
                        </Button.Content>
                    </Button>
                </StackPanel>
                <TextBlock x:Name="StatusTextBlock" Text="" FontWeight="Bold" HorizontalAlignment="Center"/>
            </StackPanel>
        </Canvas>
    </Grid>
</UserControl>
